const { Schema, model } = require('mongoose');

//设置数据集合
const adminSchema = new Schema({
    username: String,
    password: String,
    permission:String,
  
}, { versionKey: false });

//设置数据集合的模型
const Admin = model('Admin', adminSchema, 'admin');

//暴露
module.exports.Admin = Admin;